<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
   <!-- 给当前页面域添加一段java代码，用来自动获取当前项目名，不写死,然后再通过EL表达式获取 -->
    <%
    	pageContext.setAttribute("PATH",request.getContextPath());
    
     %>
    <base href="<%=basePath%>">
    
    <title>My JSP 'FooterTemplete.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <!-- 优选服务商 -->
	<div class="index-server layout clearfix">
		<h2>优选服务商<span class="index-wed-more"><a href="${PATH }/user/service/list.go">查看更多</a></span></h2>
		<ul class="clearfix">
		
			<li class="index-server-list">
				<c:forEach items="${candys }" var="list" begin="0" end="0">
					<a href="${PATH }/user/candy/${list.id}.go">
						<div class="index-server-list-img">
							<img src="${list.p1 }" alt="喜糖图片">
						</div>
						<div class="index-server-list-info">
							<h3>喜糖</h3>
						</div>
					</a>
				</c:forEach>
			</li>
			
			<li class="index-server-list">
				<c:forEach items="${cars }" var="list" begin="0" end="0">
					<a href="${PATH }/user/car/${list.id }.go">
						<div class="index-server-list-img">
							<img src="${list.p1}" alt="婚车">
						</div>
						<div class="index-server-list-info">
							<h3>婚车</h3>
						</div>
					</a>
				</c:forEach>
			</li>
			
			
			<li class="index-server-list">
				<c:forEach items="${mans }" var="list" begin="0" end="0">
					<a href="${PATH }/user/man/${list.id }.go">
						<div class="index-server-list-img">
							<img src="${list.p1 }" alt="男装">
						</div>
						<div class="index-server-list-info">
							<h3>男装</h3>
						</div>
					</a>
				</c:forEach>
			</li>
			
			<li class="index-server-list">
				<c:forEach items="${jewes }" var="list" begin="0" end="0">
					<a href="${PATH }/user/jewel/${list.id }.go">
						<div class="index-server-list-img">
							<img src="${list.p1 }" alt="珠宝">
						</div>
						<div class="index-server-list-info">
							<h3>珠宝</h3>
						</div>
					</a>
				</c:forEach>
			</li>
			
			
			<li class="index-server-list">
				<c:forEach items="${travels }" var="list" begin="0" end="0">
					<a href="${PATH }/user/trave/${list.id }.go">
						<div class="index-server-list-img">
							<img src="${list.p1 }" alt="旅行">
						</div>
						<div class="index-server-list-info">
							<h3>旅行</h3>
						</div>
					</a>
				</c:forEach>
			</li>
		</ul>
	</div>
	
	<div class="index-wine"><!-- 酒水图片 -->
		<c:forEach items="${wines }" var="list" begin="0" end="0">
			<a href="${PATH }/user/wine/${list.id }.go">
				<img src="${list.p1 }" alt="酒水">
			</a>
		</c:forEach>
	</div>
	

	<!-- footer样式 -->
	<div class="common-footer">
		<p>
			<a href="http://www.miibeian.gov.cn/">备案号：苏ICP备1111111</a>
		</p>
		<p>
			<a href="javascript:void(0)">Copyright &copy; 2018.淮安结婚网 All rights reserved.</a>
		</p>
	</div>

	<!-- 侧边栏 -->
	<div id="leftsead">
		<ul>
			<li>
				<a id="top_btn" href="javascript:void(0)">
					<img src="${PATH }/img/common/aside_2.png" width="47" height="49" class="hides"/>
					<img src="${PATH }/img/common/aside_1.png" width="47" height="49" class="shows" />
				</a>
			</li>
			<li>
				<a href="javascript:void(0)">
					<img src="${PATH }/img/common/aside_4.png" width="166" height="49" class="hides"/>
					<img src="${PATH }/img/common/aside_3.png" width="47" height="49" class="shows" />
				</a>
			</li>
			<li>
				<a class="youhui" href="javascript:void(0)">
					<img src="${PATH }/img/common/aside_5.png" width="47" height="49" class="shows" />
					<img src="${PATH }/img/common/aside_6.jpg" width="196" height="205" class="hides" usemap="#taklhtml"/>
				</a>
			</li>
		</ul>
	</div>
  </body>
</html>
